"use strict";
//FYI: https://github.com/Tencent/puerts/blob/master/doc/unity/manual.md
Object.defineProperty(exports, "__esModule", { value: true });
exports.onDestroy = exports.onPublish = void 0;
const csharp_1 = require("csharp");
const Directory = csharp_1.System.IO.Directory;
function onPublish(handler) {
    let codePkgName = handler.ToFilename(handler.pkg.name); //convert chinese to pinyin, remove special chars etc.
    let exportPath = handler.exportPath + '\\' + codePkgName;
    if (!Directory.Exists(exportPath)) {
        Directory.CreateDirectory(exportPath);
    }
    handler.exportPath = exportPath;
}
exports.onPublish = onPublish;
function onDestroy() {
    //do cleanup here
}
exports.onDestroy = onDestroy;
